{% extends 'AcmeFileManagerBundle:FileManager:index.html.twig' %}

{% block content %}

	<div id="content">

		<h2>Новая Папка</h2>

		<form action="{{ path('AcmeFileManagerBundle_createDirectory', { 'path': '/' ~ path.getPath() }) }}" method="post" {{ form_enctype(form) }}>
			{{ form_errors(form) }}

			{{ form_label(form.name, 'Загаловок') }}
			{{ form_errors(form.name) }}
			{{ form_widget(form.name, { 'attr': {'size': 32} }) }}
			
			{{ form_label(form.permissions, 'Права') }}
			{{ form_errors(form.permissions) }}
			{{ form_widget(form.permissions, { 'attr': {'size': 32, 'maxlength': 4} }) }}

			{{ form_rest(form) }}

			<input type="submit" value="Добавить" />
		</form>
		
	</div>
	
{% endblock %}